#ifndef LOGIN_H
#define LOGIN_H

#include <QWidget>
#include <socktooler.h>
#include <qmessagebox.h>
#include "createmymsg.h"
#include "msgthread.h"
#include "chat.h"
#include "main.h"

namespace Ui {
class Login;
}

class Login : public QWidget
{
    Q_OBJECT

public:
    explicit Login(QWidget *parent = 0);
    ~Login();

private slots:
    void on_btn_login_clicked();
    void DealLoginRSP(string content);
    void DealRegistRSP(string content);

    void on_btn_register_clicked();

private:
    Ui::Login *ui;
    login_success();
    login_faile();
    regist_success();
    regist_faile();
};



#endif // LOGIN_H
